docs: Explain desktop file id == application_id in migration guide
authorGuido Günther <agx@sigxcpu.org>
Thu, 2 Aug 2018 09:03:41 +0000 (11:03 +0200)
committerGuido Günther <agx@sigxcpu.org>
Thu, 2 Aug 2018 09:10:21 +0000 (11:10 +0200)
docs/reference/gtk/migrating-3to4.xml

index cd113bb79b013af534b25f5b3090352e77d02eea..6532974d3c1cb3f9c25cbfc0cc0cddf7560f77dc 100644 (file)
       </para>
     </section>
 
+    <section>
+      <title>Set a proper app_id</title>
+      <para>
+        In GTK+4 we want the application's #GApplication
+        'application-id' (and therefore the D-Bus name), the desktop
+        file basename and Wayland's xdg-shell app_id to match. In
+        order to achieve this with GTK+3 call g_set_prgname() with the same
+        application id you passed to #GtkApplication. Rename your
+        desktop files to match the application id if needed.
+      </para>
+      <para>
+        The call to g_set_prgname() can be removed once you fully migrated
+        to GTK+4.
+      </para>
+    </section>
+
   </section>
 
   <section>